<!DOCTYPE html>
<html>
<head>
	<title>newsModify.html</title>

	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="this is my page">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="../../../plugins/bootstrap/css/bootstrap.min.css"
		type="text/css"></link>
	<link rel="stylesheet" href="../../../css/style.css">
	<script type="text/javascript" src="../../../js/jquery.js"></script>
	<script src="../../../plugins/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../../../js/base.js"></script>
	
	<script type="text/javascript">
	
	$(function(){
		
		var newsId = sessionStorage.getItem('newsId');
		console.log(newsId+"newsId");
	      $.ajax({
	            url:commonurl+"/selectNewsById.news",
	            type:"POST",
	            data:{ "newsId":newsId
	            },
	            dataType:"json",
	            success:function(data){
				 	if(data.success){
				 		var obj=data.obj;
			  $("#newsId").val(obj.id);
			  $("#newsName").html(obj.newTitle);
			
			  $("#content").html(obj.newContent);
			  $("#newsPic").attr("src", commonurlimg+obj.imageUrl);
					} 
	            }

	        })
		
		
	})
	
	</script>
	
</head>

<body style="padding: 5px 10px">

	<div class="panel panel-primary">
	  <div class="panel-heading">
	    <h3 class="panel-title">新闻详情</h3>
	  </div>
	  <div class="panel-body">
			<h1 id="newsName"></h1>
			<img  id="newsPic" alt="" src="" class="img-thumbnail">
			<p id="content" class="lead"></p>
	  </div>
	</div>
	
</body>
</html>
